# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: demo01.py
@time: 2021/02/25
"""

def say(self):
    ...
    print(self)


class Person:
    ...

    def __init__(self, name):
        self._name = name

    def __new__(cls, *args, **kwargs):
        print(args)
        print(kwargs)
        return super().__new__(cls)

if __name__ == '__main__':
    pass
    person = Person('tony')
    person.say = say
    print(person._name)
    # person.say()
